{% extends "../registration_base.html" %}

{% block content %}
<!-- /.login-logo -->
<div class="card">
  <!-- /.login-card-body -->
  <div class="card-body login-card-body">
      <p class="login-box-msg">重置密码</p>
      <form class="form" action="" method="post">
          {% csrf_token %}
          {% if form.non_field_errors %}
          <div class="alert alert-danger" role="alert">
              {% for error in form.non_field_errors %}
              <p{% if forloop.last %} class="mb-0"{% endif %}>{{ error }}</p>
              {% endfor %}
          </div>
          {% endif %}
          {% for field in form %}
          <div class="form-group">
            {{ field.label_tag }}
            {{ field }}
            {{ field.errors }}
            {% if field.help_text %}
                <div class="alert alert-info">
                    <p class="help text-small text-muted">{{ field.help_text|safe }}</p>
                </div>
            {% endif %}
          </div>
          {% endfor %}
          <button type="submit" class="btn btn-primary btn-block">提交</button>
      </form>
  </div>
  <!-- /.login-card-body -->
</div>
{% endblock %}